<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
 * Created on 2012-7-23
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 class home extends CI_Controller
 {
 	private $username;
	function __construct(){
		parent::__construct();
		//如果没有登录则转向登陆页
		if($this->session->userdata('username')==''){
			redirect(site_url().'/admin/login/form');
		}
	}
	/*
	 * 后台默认页
	 */
	function index(){
		$this->load->view('admin/index');
	}


 }
?>
